package com.ruoyi.management.paystatuslogs.service.impl;

import com.ruoyi.management.paystatuslogs.mapper.PayStatusLogsMapper;
import com.ruoyi.management.paystatuslogs.ro.GetPayStatusLogListParam;
import com.ruoyi.management.paystatuslogs.service.PayStatusLogsService;
import com.ruoyi.management.paystatuslogs.vo.GetPayStatusLogListVo;
import com.ruoyi.passenger.pay.vo.PayLogsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description:
 * @author: xly
 * @date: 2022-01-21
 */
@Service
public class PayStatusLogsServiceImpl implements PayStatusLogsService {

    @Autowired
    private PayStatusLogsMapper payStatusLogsMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<GetPayStatusLogListVo> selectList(GetPayStatusLogListParam param) {
        return payStatusLogsMapper.selectList(param);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public int saveLogs(List<PayLogsVO> list) {
        return payStatusLogsMapper.saveLogs(list);
    }
}


